import { createApp } from 'vue'
import App from './App.vue'
import pinia from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import SvgIcon from '@/components/SvgIcon.vue'
import router from '@/routes/index'

const app = createApp(App)
// 导入所有svg
function importAll (r:any) {
    r.keys().forEach(r)
  }
importAll(require.context('./assets/svg', true, /\.svg$/))
app.component('SvgIcon', SvgIcon)
app.use(pinia).use(router).use(ElementPlus)
app.mount('#app')
